package jp.sourceforge.akjrcp.text_douga.rcp;

import jp.sourceforge.akjrcp.ffmpeg.FFMpegCodecs;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.PlatformUI;

public class PreferenceInitializer extends AbstractPreferenceInitializer{

	public void initializeDefaultPreferences() {
		//System.out.println("PreferenceInitializer");
		
		IPreferenceStore store =
	           Activator.getDefault().getPreferenceStore();
		
		store.setDefault(TextDougaPage.USE_HIGHSPEED, true);
		//store.setDefault(TextDougaPage.USE_HIGHSPEED, true);
		store.setDefault(TextDougaPage.VIDEO_FPS, ""+30);
		store.setDefault(TextDougaPage.VIDEO_SIZE, "320x240");
		store.setDefault(TextDougaPage.VIDEO_SIZE_OTHER,FFMpegCodecs.SIZE_160_120);
		store.setDefault(TextDougaPage.VIDEO_FPS_OTHER,FFMpegCodecs.FPS_1);
		
		store.setDefault(TextDougaAviPage.AVI_VIDEO_CODEC, "copy");
		store.setDefault(TextDougaAviPage.VIDEO_BITRATE, 2500);
		
		store.setDefault(TextDougaAviPage.AVI_AUDIO_CODEC, FFMpegCodecs.AUDIO_WAV);
		store.setDefault(TextDougaAviPage.AUDIO_RATE, TextDougaAviPage.RATE_48000);
		store.setDefault(TextDougaAviPage.AUDIO_CHANNEL, 2);
		store.setDefault(TextDougaAviPage.AUDIO_BITRATE, 192);
		
		;
		
	}
	


}
